<%@page contentType="text/html; utf-8" pageEncoding="utf-8" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="zh_CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
<h1>系统首页</h1>
    <shiro:hasPermission name="user:*:*">
        <a href="${pageContext.request.contextPath}/order/save">用户管理</a>
    </shiro:hasPermission>
    <br/>
    <shiro:hasRole name="admin">
        <a href="${pageContext.request.contextPath}/order/save">商品管理</a>
    </shiro:hasRole>
<br/>
<shiro:hasPermission name="product:*:*">
    <a href="${pageContext.request.contextPath}/order/save">物流管理</a>
</shiro:hasPermission>
<br/>
<a href="${pageContext.request.contextPath}/user/logout">退出登录</a>
</body>
</html>